/**************************
 * \if English
 * @Date:2018.09.10
 * @Author:
 * @Brief:
 * @Detail:
 * @Editor:
 * @Brief:
 * \else
 *
 * @创建日期：2018年9月10日
 * @作者：hualei
 * @大概功能：重置里程计指令
**************************/
#include "odometryresetinstruction.h"

OdometryResetInstruction::OdometryResetInstruction()
{

}

QDataStream &operator <<(QDataStream &out, OdometryResetInstruction &myVector)
{
    out << (quint32)myVector.instructionType << myVector.posX << myVector.posY << myVector.posR \
        << myVector.noteStr;

    return out;
}

QDataStream &operator >>(QDataStream &in, OdometryResetInstruction &myVector)
{
    quint32 instructionType;

    in >> instructionType >> myVector.posX >> myVector.posY >> myVector.posR >> myVector.noteStr;

    myVector.instructionType = (INSTRUCTION_TYPE)instructionType;

    return in;

}
